package cn.whuc.scala.oop

object Main {
  def main(args: Array[String]): Unit = {
    val person = new Person
    person.Call()
    person.Working
    person.eat

    val people = new people with Opreator
    people.Working

  }
}

trait Opreator{
  def Working:Unit = {
    println("能干活。")
  }
}

trait Skill{
  def eat : Unit = {
    println("能吃饭。。。")
  }
}

class Person extends Opreator with Skill {
  private val name = "zs"
  def Call():Unit = {
    println(name+"和你打招呼~")
  }
}

class people{}

